<?php

  $str = "abcdefghigklmnopqrstuvqsyz";
  
 $c = strlen($str);
 
 $sub = substr($str, strpos($str, "d"));
 $ex = explode('d', $str);
 echo $sub;
 
 echo "<pre>",
  print_r($ex);
 echo '</pre>';
 
 echo strpos($str, "c");
 
 $str1 = "12321.jpg";
 $arg = explode('.',$str1);
 $j = array_pop($arg);
 print_r($arg);
 echo '<br/>';
 echo $j;
 echo '<br/>';
 echo substr($str1, strpos($str1, '.')+1);